package hp.com.dao;

import hp.com.entity.Address;

import java.util.List;

public interface AddressDao{
    /**
     * 添加地址数据
     * @param add
     * @throws Exception
     */
    void addAddressToAccount(Address add) throws Exception;

    /**
     * 通过用户ID遍历用户数据
     * @return
     * @throws Exception
     */
    List<Address> getAddressesById(int id) throws Exception;

    Address getAddressByDataId(int id) throws Exception;
}
